import request from '@/utils/request'

// 查询科室、员工描述列表
export function listDescription(query) {
  return request({
    url: '/sms/description/list',
    method: 'get',
    params: query
  })
}

// 查询科室、员工描述详细
export function getDescription(id) {
  return request({
    url: '/sms/description/' + id,
    method: 'get'
  })
}

// 新增科室、员工描述
export function addDescription(data) {
  return request({
    url: '/sms/description',
    method: 'post',
    data: data
  })
}

// 修改科室、员工描述
export function updateDescription(data) {
  return request({
    url: '/sms/description',
    method: 'put',
    data: data
  })
}

// 删除科室、员工描述
export function delDescription(id) {
  return request({
    url: '/sms/description/' + id,
    method: 'delete'
  })
}
